package com.copc.common.model.order;

import com.copc.common.constants.PaymentStatus;
import com.copc.common.constants.PaymentType;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.Instant;

@Getter
@Setter
@ToString
public class Payment {

//    private static final long serialVersionUID = 1L;

    /**
     * 支付类型
     */
    private PaymentType type;

    /**
     * 支付单ID
     */
    private String reference;

    /**
     * 支付金额
     */
    private BigDecimal amount;

    /**
     * 支付时间
     */
    private Instant timestamp;

    /**
     * 补款id
     */
    private Long repairId;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 订单状态
     */
    private PaymentStatus status;

    private BigDecimal discountAmount;
}
